<?php
/**
 * 
 * Abovo configuration file
 * 
 * @category Abovo
 * 
 * @package Abovo
 * 
 * @author Antti Holvikari <anttih@gmail.com>
 * 
 * @license http://opensource.org/licenses/gpl-license.php GPL
 * 
 */
$config = array();


// -------------------------------------------------------
// 
// Layout customization
// 

// site name, displayed on the top of the page
$config['Abovo_App_Base']['title'] = 'Abovo';

// CSS styles. use these to customize the style of your site
$config['Abovo_App_Base']['style'] = array(
    'Abovo/styles/YUI/reset-fonts-grids.css',
    'Abovo/styles/forms.css',
    'Abovo/styles/main.css',
);

// --------------------------------------------------------
// 
// Language
// 

// use finnish by default
$config['Solar_Locale']['code'] = 'fi_FI';

// use Abovo's own locale class
$config['Solar']['locale_class'] = 'Abovo_Locale';


// -------------------------------------------------------
// 
// URIs and paths
// 

// base path for all actions.
// default is e.g http://example.com/index.php
$config['Solar_Uri_Action']['path'] = "/index.php";

// path to public dir.
// default is for i.e http://example.com/public
$config['Solar_Uri_Public']['path'] = "/public";

// allowed app namespaces where to look for modules
$config['Abovo_Controller_Front']['classes'] = array('Abovo_App');

// default app is the wiki
$config['Abovo_Controller_Front']['default'] = 'Abovo_App_Crm_Wiki';

// path to small contact images
$config['Abovo_Image_Avatar']['path_small'] = '/path/to/avatars/small';

// path to big contact images
$config['Abovo_Image_Avatar']['path_big'] = '/path/to/avatars/big';


// ------------------------------------------------------
//
// Database access
//

// database adapter used. DEFAULT: Sqlite
$config['Solar_Sql']['adapter'] = 'Solar_Sql_Adapter_Sqlite';
// use mysql
//$config['Solar_Sql']['adapter'] = 'Solar_Sql_Adapter_Mysql';

// Sqlite table path
$config['Solar_Sql_Adapter_Sqlite']['name'] = '/tmp/abovo.sq3';

// Mysql database access
$config['Solar_Sql_Adapter_Mysql']['name'] = 'abovo';
$config['Solar_Sql_Adapter_Mysql']['host'] = 'localhost';
$config['Solar_Sql_Adapter_Mysql']['user'] = 'root';
$config['Solar_Sql_Adapter_Mysql']['pass'] = '';

// profile SQL queries?
$config['Solar_Sql_Adapter']['profiling'] = false;

// create SQL tables automatically?
// when set to true, this will make the system to
// check for table existance on every request.
// You **should** set this to false when in production environment
$config['Solar_Sql_Table']['create'] = true;

// forcibly create tables on construction
// 
$config['Abovo_Sql_Table']['autoconnect'] = true;


// ---------------------------------------------------------
// 
// Cacheing
// 

// cache adapter
$config['Solar_Cache']['adapter'] = 'Solar_Cache_Adapter_File';

// APC cache adapter
//$config['Solar_Log']['adapter'] = 'Solar_Log_Adapter_Apc';

// Memcache cache adapter
//$config['Solar_Log']['adapter'] = 'Solar_Log_Adapter_Memcache';

// cache lifetime. 0 = no cache
$config['Solar_Cache_Adapter']['life'] = 0;

// path for file adapter cache files
$config['Solar_Cache_Adapter_File']['path'] = '/tmp/';


// ---------------------------------------------------------
// 
// Logging
// 

//
$config['Solar_Log']['adapter'] = 'Solar_Log_Adapter_File';

// You can use Growl as a log adapter by uncommenting the line below.
// this is useful for debugging log messages
//$config['Solar_Log']['adapter'] = 'Lux_Log_Adapter_Growl';

// path to log file dir for file based log adapter.
// make sure your httpd user has write access to this file.
$config['Solar_Log_Adapter_File']['file'] = '/tmp/abovo.log';

// ---------------------------------------------------------
// 
// Authentication
// 

// authentication
$config['Solar_Auth']['adapter'] = 'Abovo_Auth_Adapter_Sql';

// auth lifetime. zero is forever
$config['Solar_Auth']['expire'] = 0;

// auth idle time. default is one hour
$config['Solar_Auth']['idle'] = 3600;

// auth table info
$config['Solar_Auth_Adapter_Sql']['table']      = 'auth';
$config['Solar_Auth_Adapter_Sql']['handle_col'] = 'handle';
$config['Solar_Auth_Adapter_Sql']['passwd_col'] = 'password';


// ---------------------------------------------------------
// 
// User permissions
// 
//

// Use Abovo's own access adapter
$config['Solar_Access']['adapter'] = 'Abovo_Access_Adapter_Sql';

// access table info
// you should **not** change these!
$config['Lux_Access_Adapter_Sql']['table']      = 'perms';
$config['Lux_Access_Adapter_Sql']['name_col']   = 'handle';
$config['Lux_Access_Adapter_Sql']['class_col']  = 'class_name';
$config['Lux_Access_Adapter_Sql']['action_col'] = 'act';


// -------------------------------------------------------
// 
// Mail
// 
//

// mail transport adapter
// default is PHP's mail() function
$config['Solar_Mail_Message']['transport']['adapter'] = 'Solar_Mail_Transport_Adapter_Phpmail';

// smtp adapter
//$config['Solar_Mail_Message']['transport']['adapter'] = 'Solar_Mail_Transport_Adapter_Smtp';
//$config['Solar_Mail_Transport_Adapter_Smtp']['smtp'] = array();

// use UNIX newlines in mail headers
$config['Solar_Mail_Message']['crlf'] = "\n";

//$config['Solar_Smtp_Adapter']['host']   = 'localhost'; // smtp server at localhost
//$config['Solar_Smtp_Adapter']['port']   = '25';        // server port
//$config['Solar_Smtp_Adapter']['crlf']   = "\r\n";
//$config['Solar_Smtp_Adapter']['secure'] = null;
//$config['Solar_Smtp_Adapter']['client'] = '127.0.0.1';


// -------------------------------------------------------
// 
// Growl
// 

// app name
$config['Lux_Growl']['app'] = 'Abovo';
$config['Lux_Growl']['messages'] = array(
    'info'     => array('enable' => true),
    'critical' => array('enable' => true),
);

return $config;
